//
//  MyLable1.m
//  王宇先_03
//
//  Created by wyx on 16/3/11.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "MyLable1.h"

@implementation MyLable1

-(instancetype)initWithFrame:(CGRect)frame text:(NSString *)text{
    self = [super initWithFrame:frame];
    if (self) {
        self.text = text;
    }
    //调用 config方法
    [self config];
    return self;
}
- (void)config {
    //字体颜色
    self.textColor = [UIColor blackColor];
    //字体大小
    self.font = [UIFont systemFontOfSize: 15];
    //加粗
    self.font = [UIFont boldSystemFontOfSize:15];
    //行数(0 表示没有限制)
    self.numberOfLines = 2;
    
}

@end
